import request from "@/utils/request.js";

const api_prefix = "/online";

export function list(pageNo, pageSize,param) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/list/${pageNo}/${pageSize}`,
    method: "GET",
    params: param
  });
}

export function offline(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/offline/${userId}`,
    method: "GET",
  });
}
